import { Navigate } from "react-router-dom";
import {
  AppOutline,
  MessageOutline,
  UnorderedListOutline,
  UserOutline,
} from "antd-mobile-icons";
import Home from "../View/HomeView/Home";
import Questions from "../View/QuestionsOne/Questions";
import Video from "../View/VideoView/Video";
import My from "../View/MyView/My";
import Login from "../View/Login/login";
const redunav = [
  {
    path: "/",
    element: <Navigate to={"/home"}></Navigate>,
  },
  {
    path: "/home",
    element: <Home />,
    tab: {
      title: "首页",
      icon: <AppOutline></AppOutline>,
    },
  },
  {
    path: "/questions",
    element: <Questions />,
    tab: {
      title: "问答",
      icon: <MessageOutline></MessageOutline>,
    },
  },
  {
    path: "/video",
    element: <Video />,
    tab: {
      title: "视频",
      icon: <UnorderedListOutline></UnorderedListOutline>,
    },
  },
  {
    path: "/my",
    element: <My />,
    tab: {
      title: "我的",
      icon: <UserOutline></UserOutline>,
    },
  },
  {
    path: "/login",
    element: <Login></Login>,
  },
];
export default redunav;
